<?php $this->load->view('header', array('data' => $data));?>
<div id="center">
	<div id="left_box">
		<div class="module"><div class="text">权限管理</div></div>
		<div class="sub_module">
		<ul class="sub_module">
		<?php foreach ($data['module'][$data['current']['module']]['sub_module'] as $v) { ?>
			<li <?php if ($v['ename'] == $data['current']['sub_module']) echo "class='current'"; ?> ><a href="<?php echo "/{$data['current']['module']}/{$v['ename']}";?>"><?php echo $v['cname'];?></a></li>
		<?php }?>
		</ul>
		</div>
		<div class="desc_box1 desc_box">
			<div class="title"></div>
			<div class="content"></div>
		</div>
		<div class="desc_box2 desc_box">
			<div class="title"></div>
			<div class="content"></div>
		</div>
	</div>
	<div id="right_box">
		<fieldset id="select_user">
			<legend>选择用户</legend>
   			<select id="atype">
       			<option>请选择类型...</option>
       			<option>用户</option>
       			<option>组</option>
   			</select>
   			<select class="user">
   				<option value="0">请选择...</option>
   			</select>
   			<select class="user user_id" >
   				<option value="0">请选择...</option>
			<?php foreach ($data['all_user'] as $v) {?>
       			<option value="<?php echo $v['id']; ?>"><?php echo $v['username']; ?></option>
			<?php } ?>
   			</select>  
   			<select class="user group_id" >
   				<option value="0">请选择...</option>
			<?php foreach ($data['all_group'] as $v) {?>
       			<option value="<?php echo $v['id']; ?>"><?php echo $v['username']; ?></option>
			<?php } ?>
   			</select>  
			<input type="button" value="确定" id="select_button" />
		</fieldset>
		<fieldset id="role_list">
			<legend>选择角色</legend>
			<ul>
			<?php foreach($data['all_role'] as $r) {?>
				<li><input type="checkbox"><?php echo $r['role']; ?></li>
			<?php } ?>
			</ul>
		</fieldset>
	</div>
</div>
<?php $this->load->view('footer') ?>
